package mvc;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

public class MyInterceptor implements Interceptor{
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response) {
        System.out.println(request.getCookies().toString() + "A request is coming");
        return true;
    }

    @Override
    public void postHandle(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("A request is finished");
    }
}
